package com.onenine.app.model;

import com.amap.api.location.AMapLocation;

/**
 * 高德定位的精简实体
 */
public class AMapLocationItem {

    private double latitude;
    private double longitude;
    private String address;
    private String poiName;
    private String city;

    public AMapLocationItem(AMapLocation aMapLocation) {
        this.latitude = aMapLocation.getLatitude();
        this.longitude = aMapLocation.getLongitude();
        this.address = aMapLocation.getAddress();
        this.poiName = aMapLocation.getPoiName();
        this.city = aMapLocation.getCity();
    }

    public double getLatitude() {
        return latitude;
    }

    public double getLongitue() {
        return longitude;
    }

    public String getAddress() {
        return address == null ? "" : address;
    }

    public String getPoiName() {
        return poiName == null ? "" : poiName;
    }

    public String getCity() {
        return city == null ? "" : city;
    }

}
